package com.example.group.network.express_plus_app.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 夏宁
 * @email 1941512303@qq.com
 * @date 2021/4/3 15:08
 */
public class OrderInfoGroup {

    private static String[] detailAddresses=
    {"后营六排一号","后营六排一号","后营六排一号","后营六排2号","后营六排3号","后营六排4号"};
    private static String[] deliveryAddresses=
    {"菊六426","菊六426","菊六426","菊六426","菊六426","菊六426"};
    private static String[] expressTypes={
            "衣服","食品","数码","衣服","数码","食品"
    };
    private static String[] deliveryModes={
            "韵达","圆通","韵达","圆通","圆通","圆通"
    };
    private static Float[] estimatedPrices={
            1f,1f,1f,2f,3f,4f
    };
    public static ArrayList<Order> getDefaultList() {
        ArrayList<Order> listArray = new ArrayList<>();
        for (int i=0; i<detailAddresses.length; i++) {
            Order order = new Order();
            order.setExpressDetailAddress(detailAddresses[i]);
            order.setDeliveryAddress(deliveryAddresses[i]);
            order.setExpressType(expressTypes[i]);
            order.setEstimatedPrice(estimatedPrices[i]);
            order.setDeliveryMode(deliveryModes[i]);
            listArray.add(order);
        }
        return listArray;
    }
}
